key = [0,0,0,0]
        key1 = [0,0,0,0]
        key2 = [0,0,0,0]

        seed = [0x6A, 0x3B, 0x58, 0x6C]

        if level == 1:
            Mask = [0x9A, 0x1B, 0x68, 0x7C]
            seed1 = [0,0,0,0]
            for i in range(4):
                seed1[i] = seed[i] << 1
                key1[i] = seed[i] ^ Mask[i]
                key2[i] = seed1[i] ^ Mask[i]
                key[i] = key1[i] + key2[i] % 10
                
        # iSeed = seed[0] << 24|seed[1] << 16|seed[2] << 8 |seed[3]
        # if level == 1:
        #     STccKey = (iSeed + 0x68431630)^( iSeed + 0x50918980)
        # else:
        #     STccKey = (iSeed + 0x18757683)^( iSeed + 0x31107532)
        # key[0] = (STccKey>>24) &0xFF
        # key[1] = (STccKey>>16) &0xFF
        # key[2] = (STccKey>>8) &0xFF
        # key[3] = STccKey &0xFF
        
        return key